Adwaita: add vertical margins to switches on a headerbar
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 20 May 2016 13:39:08 +0000 (15:39 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 20 May 2016 13:39:08 +0000 (15:39 +0200)
See https://bugzilla.gnome.org/show_bug.cgi?id=766642

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 62fc4350c89b219fa2e490daf6d7530036d12b90..db793938b6cc1beb314545696b17bec20af7e0e7 100644 (file)
@@ -1546,7 +1546,7 @@ headerbar {
 }
 
 headerbar {
-  // add vertical margins to headerbar entries, buttons and separators to avoid them spanning the whole height
+  // add vertical margins to common widget on the headerbar to avoid them spanning the whole height
   entry,
   spinbutton,
   separator,
@@ -1554,6 +1554,10 @@ headerbar {
     margin-top: 6px;
     margin-bottom: 6px;
   }
+  switch {
+    margin-top: 9px;
+    margin-bottom: 9px;
+  }
 }
 
 .background:not(.tiled):not(.maximized) .titlebar {
index 6b1abdcbdd66c84abfb30a2386e2014ac72d207e..cc264b5fe475c712049ef810001cb77d501ca8a4 100644 (file)
@@ -2071,6 +2071,9 @@ headerbar separator,
 headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
+headerbar switch {
+  margin-top: 9px;
+  margin-bottom: 9px; }
 
 .background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar {
   border-top-left-radius: 7px;
index 2dbcc6101efa3671e2865b8f5550128676796d16..decd840acec55e19d1c02480575a87dc20b7fc23 100644 (file)
@@ -2078,6 +2078,9 @@ headerbar separator,
 headerbar button {
   margin-top: 6px;
   margin-bottom: 6px; }
+headerbar switch {
+  margin-top: 9px;
+  margin-bottom: 9px; }
 
 .background:not(.tiled):not(.maximized) .titlebar:backdrop, .background:not(.tiled):not(.maximized) .titlebar {
   border-top-left-radius: 7px;